var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  if(req.protocol === 'https') {
    res.status(200).send('This is https visit!');
}
else {
    res.status(200).send('This is http visit!');
}
});

module.exports = router;
